.class public Lcom/estrongs/android/ui/adapter/b;
.super Landroid/widget/BaseAdapter;
.source "GridAdapter_Sort.java"


# instance fields
.field private a:Landroid/content/Context;

.field private b:I

.field private c:[Landroid/graphics/drawable/Drawable;

.field private d:Lcom/estrongs/android/ui/theme/b;

.field private e:I


# direct methods
.method public constructor <init>(Landroid/content/Context;)V
    .locals 4

    .line 1
    invoke-direct {p0}, Landroid/widget/BaseAdapter;-><init>()V

    const/16 v0, 0x8

    .line 2
    iput v0, p0, Lcom/estrongs/android/ui/adapter/b;->b:I

    .line 3
    iput-object p1, p0, Lcom/estrongs/android/ui/adapter/b;->a:Landroid/content/Context;

    .line 4
    invoke-static {}, Lcom/estrongs/android/ui/theme/b;->r()Lcom/estrongs/android/ui/theme/b;

    move-result-object p1

    iput-object p1, p0, Lcom/estrongs/android/ui/adapter/b;->d:Lcom/estrongs/android/ui/theme/b;

    .line 5
    invoke-virtual {p0}, Lcom/estrongs/android/ui/adapter/b;->getCount()I

    move-result p1

    new-array p1, p1, [Landroid/graphics/drawable/Drawable;

    iput-object p1, p0, Lcom/estrongs/android/ui/adapter/b;->c:[Landroid/graphics/drawable/Drawable;

    .line 6
    iget-object v0, p0, Lcom/estrongs/android/ui/adapter/b;->d:Lcom/estrongs/android/ui/theme/b;

    const v1, 0x7f0809e1

    invoke-virtual {v0, v1}, Lcom/estrongs/android/ui/theme/b;->c(I)Landroid/graphics/drawable/Drawable;

    move-result-object v0

    const/4 v1, 0x0

    aput-object v0, p1, v1

    .line 7
    iget-object p1, p0, Lcom/estrongs/android/ui/adapter/b;->c:[Landroid/graphics/drawable/Drawable;

    iget-object v0, p0, Lcom/estrongs/android/ui/adapter/b;->d:Lcom/estrongs/android/ui/theme/b;

    const v1, 0x7f0809e7

    invoke-virtual {v0, v1}, Lcom/estrongs/android/ui/theme/b;->c(I)Landroid/graphics/drawable/Drawable;

    move-result-object v0

    const/4 v1, 0x1

    aput-object v0, p1, v1

    .line 8
    iget-object p1, p0, Lcom/estrongs/android/ui/adapter/b;->c:[Landroid/graphics/drawable/Drawable;

    iget-object v0, p0, Lcom/estrongs/android/ui/adapter/b;->d:Lcom/estrongs/android/ui/theme/b;

    const v1, 0x7f0809e3

    invoke-virtual {v0, v1}, Lcom/estrongs/android/ui/theme/b;->c(I)Landroid/graphics/drawable/Drawable;

    move-result-object v0

    const/4 v1, 0x2

    aput-object v0, p1, v1

    .line 9
    iget-object p1, p0, Lcom/estrongs/android/ui/adapter/b;->c:[Landroid/graphics/drawable/Drawable;

    iget-object v0, p0, Lcom/estrongs/android/ui/adapter/b;->d:Lcom/estrongs/android/ui/theme/b;

    const v1, 0x7f0809e5

    invoke-virtual {v0, v1}, Lcom/estrongs/android/ui/theme/b;->c(I)Landroid/graphics/drawable/Drawable;

    move-result-object v0

    const/4 v1, 0x3

    aput-object v0, p1, v1

    .line 10
    iget-object p1, p0, Lcom/estrongs/android/ui/adapter/b;->c:[Landroid/graphics/drawable/Drawable;

    iget-object v0, p0, Lcom/estrongs/android/ui/adapter/b;->d:Lcom/estrongs/android/ui/theme/b;

    const v1, 0x7f0809e2

    invoke-virtual {v0, v1}, Lcom/estrongs/android/ui/theme/b;->c(I)Landroid/graphics/drawable/Drawable;

    move-result-object v0

    const/4 v1, 0x4

    aput-object v0, p1, v1

    .line 11
    iget-object p1, p0, Lcom/estrongs/android/ui/adapter/b;->c:[Landroid/graphics/drawable/Drawable;

    iget-object v0, p0, Lcom/estrongs/android/ui/adapter/b;->d:Lcom/estrongs/android/ui/theme/b;

    const v2, 0x7f0809e8

    invoke-virtual {v0, v2}, Lcom/estrongs/android/ui/theme/b;->c(I)Landroid/graphics/drawable/Drawable;

    move-result-object v0

    const/4 v2, 0x5

    aput-object v0, p1, v2

    .line 12
    iget-object p1, p0, Lcom/estrongs/android/ui/adapter/b;->c:[Landroid/graphics/drawable/Drawable;

    iget-object v0, p0, Lcom/estrongs/android/ui/adapter/b;->d:Lcom/estrongs/android/ui/theme/b;

    const v2, 0x7f0809e4

    invoke-virtual {v0, v2}, Lcom/estrongs/android/ui/theme/b;->c(I)Landroid/graphics/drawable/Drawable;

    move-result-object v0

    const/4 v2, 0x6

    aput-object v0, p1, v2

    .line 13
    iget-object p1, p0, Lcom/estrongs/android/ui/adapter/b;->c:[Landroid/graphics/drawable/Drawable;

    iget-object v0, p0, Lcom/estrongs/android/ui/adapter/b;->d:Lcom/estrongs/android/ui/theme/b;

    const v2, 0x7f0809e6

    invoke-virtual {v0, v2}, Lcom/estrongs/android/ui/theme/b;->c(I)Landroid/graphics/drawable/Drawable;

    move-result-object v0

    const/4 v2, 0x7

    aput-object v0, p1, v2

    .line 14
    invoke-static {}, Lcom/estrongs/android/pop/view/FileExplorerActivity;->a1()Lcom/estrongs/android/pop/view/FileExplorerActivity;

    move-result-object p1

    if-eqz p1, :cond_0

    .line 15
    invoke-static {}, Lcom/estrongs/android/pop/view/FileExplorerActivity;->a1()Lcom/estrongs/android/pop/view/FileExplorerActivity;

    move-result-object p1

    invoke-virtual {p1}, Lcom/estrongs/android/pop/view/FileExplorerActivity;->Z()Lcom/estrongs/android/view/FileGridViewWrapper;

    move-result-object p1

    goto :goto_0

    :cond_0
    const/4 p1, 0x0

    :goto_0
    if-eqz p1, :cond_2

    .line 16
    invoke-virtual {p1}, Lcom/estrongs/android/view/FileGridViewWrapper;->k0()I

    move-result v0

    .line 17
    invoke-virtual {p1}, Lcom/estrongs/android/view/FileGridViewWrapper;->l0()I

    move-result v2

    .line 18
    invoke-virtual {p1}, Lcom/estrongs/android/view/FileGridViewWrapper;->Y()Ljava/lang/String;

    move-result-object v3

    invoke-static {v3}, Lcom/estrongs/android/pop/view/utils/f;->b(Ljava/lang/String;)Z

    move-result v3

    if-eqz v3, :cond_1

    .line 19
    invoke-static {}, Lcom/estrongs/android/pop/FexApplication;->n()Lcom/estrongs/android/pop/FexApplication;

    move-result-object v0

    invoke-virtual {p1}, Lcom/estrongs/android/view/FileGridViewWrapper;->Y()Ljava/lang/String;

    move-result-object p1

    invoke-static {v0, p1}, Lcom/estrongs/android/pop/view/utils/f;->c(Landroid/content/Context;Ljava/lang/String;)Lcom/estrongs/android/pop/view/utils/f$a;

    move-result-object p1

    .line 20
    iget v0, p1, Lcom/estrongs/android/pop/view/utils/f$a;->d:I

    .line 21
    iget v2, p1, Lcom/estrongs/android/pop/view/utils/f$a;->c:I

    :cond_1
    mul-int/lit8 v0, v0, 0x4

    add-int/2addr v0, v2

    .line 22
    iput v0, p0, Lcom/estrongs/android/ui/adapter/b;->e:I

    goto :goto_1

    :cond_2
    const/4 p1, -0x1

    .line 23
    iput p1, p0, Lcom/estrongs/android/ui/adapter/b;->e:I

    :goto_1
    return-void
.end method


# virtual methods
.method public a(I)V
    .locals 0

    .line 1
    iput p1, p0, Lcom/estrongs/android/ui/adapter/b;->e:I

    .line 2
    invoke-virtual {p0}, Landroid/widget/BaseAdapter;->notifyDataSetChanged()V

    return-void
.end method

.method public getCount()I
    .locals 1

    .line 1
    iget v0, p0, Lcom/estrongs/android/ui/adapter/b;->b:I

    return v0
.end method

.method public getItem(I)Ljava/lang/Object;
    .locals 0

    const/4 p1, 0x0

    return-object p1
.end method

.method public getItemId(I)J
    .locals 2

    const-wide/16 v0, 0x0

    return-wide v0
.end method

.method public getView(ILandroid/view/View;Landroid/view/ViewGroup;)Landroid/view/View;
    .locals 3

    if-nez p2, :cond_0

    .line 1
    iget-object p2, p0, Lcom/estrongs/android/ui/adapter/b;->a:Landroid/content/Context;

    invoke-static {p2}, Lcom/estrongs/android/pop/esclasses/h;->from(Landroid/content/Context;)Landroid/view/LayoutInflater;

    move-result-object p2

    const p3, 0x7f0c01c3

    const/4 v0, 0x0

    invoke-virtual {p2, p3, v0}, Landroid/view/LayoutInflater;->inflate(ILandroid/view/ViewGroup;)Landroid/view/View;

    move-result-object p2

    :cond_0
    const p3, 0x7f09051a

    .line 2
    invoke-virtual {p2, p3}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object p3

    check-cast p3, Landroid/widget/ImageView;

    .line 3
    iget-object v0, p0, Lcom/estrongs/android/ui/adapter/b;->c:[Landroid/graphics/drawable/Drawable;

    aget-object v0, v0, p1

    invoke-virtual {p3, v0}, Landroid/widget/ImageView;->setImageDrawable(Landroid/graphics/drawable/Drawable;)V

    .line 4
    iget-object v0, p0, Lcom/estrongs/android/ui/adapter/b;->a:Landroid/content/Context;

    const/high16 v1, 0x40c00000    # 6.0f

    invoke-static {v0, v1}, Les/fy;->a(Landroid/content/Context;F)I

    move-result v0

    iget-object v2, p0, Lcom/estrongs/android/ui/adapter/b;->a:Landroid/content/Context;

    .line 5
    invoke-static {v2, v1}, Les/fy;->a(Landroid/content/Context;F)I

    move-result v1

    const/4 v2, 0x0

    .line 6
    invoke-virtual {p3, v2, v0, v2, v1}, Landroid/widget/ImageView;->setPadding(IIII)V

    const p3, 0x7f0906a5

    .line 7
    invoke-virtual {p2, p3}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object p3

    check-cast p3, Landroid/widget/TextView;

    const/16 v0, 0x8

    .line 8
    invoke-virtual {p3, v0}, Landroid/widget/TextView;->setVisibility(I)V

    .line 9
    iget p3, p0, Lcom/estrongs/android/ui/adapter/b;->e:I

    if-ne p1, p3, :cond_1

    const p1, 0x7f080812

    .line 10
    invoke-virtual {p2, p1}, Landroid/view/View;->setBackgroundResource(I)V

    goto :goto_0

    :cond_1
    const p1, 0x7f080816

    .line 11
    invoke-virtual {p2, p1}, Landroid/view/View;->setBackgroundResource(I)V

    :goto_0
    return-object p2
.end method
